﻿using ConsoleDispatch.DispatchConfig;
using ConsoleDispatch.DispatchParameter;
using GenericityDispatch.DispatchAttribute;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleDispatch.DispatchRealization
{

    /// <summary>
    /// 测试实现
    /// </summary>
    [FlowNode("FlowNode4",2)]
    public class Test4Realization : BaseRealization<TestParameter>
    {
        /// <summary>
        /// Test接收处理实现
        /// </summary>
        /// <param name="eEvent"></param>
        protected override void Receive(TestParameter eEvent)
        {
            var json = JsonConvert.SerializeObject(eEvent);
            Console.WriteLine($"**********Test4**********");
            Console.WriteLine($"Test4 被实现了，参数name为{eEvent.TestName}");
            Console.WriteLine($"**********Test4**********\r\n");
        }
    }
}
